CREATE TABLE [dbo].[PersistentPermission]
(
[Oid] [uniqueidentifier] NOT NULL ROWGUIDCOL,
[SerializedPermission] [nvarchar] (4000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Role] [uniqueidentifier] NULL,
[OptimisticLockField] [int] NULL,
[GCRecord] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PersistentPermission] ADD CONSTRAINT [PK_PersistentPermission] PRIMARY KEY CLUSTERED  ([Oid]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [iGCRecord_PersistentPermission] ON [dbo].[PersistentPermission] ([GCRecord]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [iRole_PersistentPermission] ON [dbo].[PersistentPermission] ([Role]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[PersistentPermission] WITH NOCHECK ADD CONSTRAINT [FK_PersistentPermission_Role] FOREIGN KEY ([Role]) REFERENCES [dbo].[RoleBase] ([Oid]) NOT FOR REPLICATION
GO
